-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix IndexOutOfBoundsException when running include/exclude with non-existent prefix term #19637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix IndexOutOfBoundsException when running include/exclude with non-existent prefix term #19637
Conversation
|
@msfroh could you take a look since you added this optimization |
Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
e90ffb1 to
7f1e867
Compare
msfroh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this!
|
❌ Gradle check result for 7f1e867: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
jainankitk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Signed-off-by: Ankit Jain <[email protected]>
|
❌ Gradle check result for d6eb8db: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Another flaky test: cc: @kaushalmahi12 / @ruai0511 |
|
The backport to To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.x
# Create a new branch
git switch --create backport/backport-19637-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 09b3b962cdbb703591fe7422f6eecad541f89c45
# Push it to GitHub
git push --set-upstream origin backport/backport-19637-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.xThen, create a pull request where the |
|
The backport to To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-2.19 2.19
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.19
# Create a new branch
git switch --create backport/backport-19637-to-2.19
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 09b3b962cdbb703591fe7422f6eecad541f89c45
# Push it to GitHub
git push --set-upstream origin backport/backport-19637-to-2.19
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.19Then, create a pull request where the |
|
The backport to To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-3.3 3.3
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-3.3
# Create a new branch
git switch --create backport/backport-19637-to-3.3
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 09b3b962cdbb703591fe7422f6eecad541f89c45
# Push it to GitHub
git push --set-upstream origin backport/backport-19637-to-3.3
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-3.3Then, create a pull request where the |
…xistent prefix term (#19637) Signed-off-by: Harsha Vamsi Kalluri <[email protected]> Signed-off-by: Ankit Jain <[email protected]> Co-authored-by: Ankit Jain <[email protected]> (cherry picked from commit 09b3b96)
…xistent prefix term (#19637) Signed-off-by: Harsha Vamsi Kalluri <[email protected]> Signed-off-by: Ankit Jain <[email protected]> Co-authored-by: Ankit Jain <[email protected]> (cherry picked from commit 09b3b96)
|
Created the backport PRs for 2.19 and 3.3. Don't need to backport for |
…xistent prefix term (#19637) (#19792) (cherry picked from commit 09b3b96) Signed-off-by: Harsha Vamsi Kalluri <[email protected]> Signed-off-by: Ankit Jain <[email protected]> Co-authored-by: Harsha Vamsi Kalluri <[email protected]>
…xistent prefix term (opensearch-project#19637) Signed-off-by: Harsha Vamsi Kalluri <[email protected]> Signed-off-by: Ankit Jain <[email protected]> Co-authored-by: Ankit Jain <[email protected]>
Description
As described in #19636, we check the bounds of the ordinal before we seek
Related Issues
Resolves #19636
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.